package com.jianyun.jyzs.constant;


import com.jianyun.jyzs.R;

/**
 * Created by mlli on 2017/10/20.
 */

public class SysConstant {
    public static String tp_messagevo = "tp_messagevo";
    public static String menu_messagevo = "menu_messagevo";
    public static String[] top_title = {"综合业务","流程审批","扫一扫","签到"};
    public static String[] menu_title = {"通知公告","开票","预警消息","CRM","工程动态"};
    public static int[] img_list = {R.drawable.zhyw, R.drawable.shenpi,R.drawable.app4,R.drawable.app6};
    public static int[] menu_list = {R.drawable.tzgg,R.drawable.kaipiao,R.drawable.yjxx,R.drawable.app10,
            R.drawable.app20};

    public static String push_rce = "push_rce";

    public static String msg_key_string1 = "msg_key_string1";
    public static String msg_key_string2 = "msg_key_string2";

    public static final int TXT = 1;
    public static final int IMAGE = 2;
    public static final int VOICE = 3;
    public static final int VIDEO = 4;
    public static final int FILE = 5;
    public static final int MEDIA = 6;

    //手机像素
    public static int width = 0;
    public static int height = 0;
    public static String msg_key_list1 = "msg_key_list1";
    public static String msg_p1 = "msg_key_p1";
    public static String msg_p2 = "msg_key_p2";
    public static String msg_key_int1 = "msg_key_int1";
    public static final String http_url_myWorkFlowUrl = "phone/phoneMyworkflowlist.aspx?employeeid={employeeid}";
    public static final String http_url_workFlowUrl = "phone/phoneworkflowlist.aspx?employeeid={employeeid}";
    public static final String http_url_shareWorkFlowUrl = "phone/phoneshareworkflowlist.aspx?employeeid={employeeid}";
    public static final String http_url_classWorkFlowUrl = "phone/PhoneWorkFlowClassifyList.aspx?employeeid={employeeid}";

    public static final String msg_key_parcelable = "parcelable";

    //工单状态
    public static final String[] ORDERSTATE_1 = {"-1","全部"};// 0 未完成
    public static final String[] ORDERSTATE0 = {"0","执行中"};// 0 未完成
    public static final String[] ORDERSTATE1 = {"1","完成"};//  完成
    public static final String[] ORDERSTATE3 = {"3","暂停"};// 暂停
    public static final String[] ORDERSTATE4 = {"4","取消"};//  取消
    public static final String[] ORDERSTATE5 = {"5","合格"};//  合格
    public static final String[] ORDERSTATE6 = {"6","不合格"};//  不合格
    public static String getoOrderStateStr(Integer state){
        if(state == null){return "";}
        if(state.intValue() == Integer.valueOf(ORDERSTATE_1[0])){return ORDERSTATE_1[1];}
        if(state.intValue() == Integer.valueOf(ORDERSTATE0[0])){return ORDERSTATE0[1];}
        if(state.intValue() == Integer.valueOf(ORDERSTATE1[0])){return ORDERSTATE1[1];}
        if(state.intValue() == Integer.valueOf(ORDERSTATE3[0])){return ORDERSTATE3[1];}
        if(state.intValue() == Integer.valueOf(ORDERSTATE4[0])){return ORDERSTATE4[1];}
        if(state.intValue() == Integer.valueOf(ORDERSTATE5[0])){return ORDERSTATE5[1];}
        if(state.intValue() == Integer.valueOf(ORDERSTATE6[0])){return ORDERSTATE6[1];}
        return "";
    }

    public static int RESULT_CODE_GETUSER_1  = 101;

    public static int RESULT_CODE_GETUSER_2  = 102;
}
